package com.zhuang.designpattern.iterator;

/**
 * description: Collection
 * date: 2022/9/19 14:19
 * author: Zhuang
 * version: 1.0
 */
public interface Collection<E, L> extends Iterable<E> {
    boolean add(E e);

    boolean remove(E e);

    boolean addLink(String key, L l);

    boolean removeLink(String key);

    Iterator<E> iterator();
}
